import store from '@/store'

/**
 * 翻译字典
 * @param {*} key 值
 * @param {*} type 字典类型
 */
export function dict (key, type) {
  let label = store.getters.getDictionary(type).find(res => res.dicKey === key)
  return label && label['dicValue']
}
